package org.business.accounting.beans;

import org.apache.tapestry5.annotations.Property;
import org.business.accounting.interfaces.Cart;
import org.business.accounting.interfaces.LogOutHelper;
import org.business.accounting.interfaces.User;

public class LogOutHelperBean implements LogOutHelper {

	@Property
	private Cart cart;
	
	@Property
	private User user;

	public LogOutHelperBean(Cart cart, User user) {
		super();
		this.cart = cart;
		this.user = user;
	}

	public LogOutHelperBean() {
		super();
	}

	public void execute() {
		cart = null;
		user = null;
	}

	public Cart getCart() {
		return cart;
	}

	public void setCart(Cart cart) {
		this.cart = cart;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
